<%@page import="com.cap.bts.commonfunc.common.util.UserUtil"%>
<%@page import="org.hibernate.sql.Update"%>
<%@page import="org.hibernate.event.SaveOrUpdateEvent"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>输入授权密码</title>
	<%@include file="../include/include.jsp"%>
	<link rel="stylesheet" type="text/css" href="${csspath}/public.css"/>
	<link rel="stylesheet" type="text/css" href="${csspath}/datepicker.css"/>
	<link rel="stylesheet" type="text/css" href="${csspath}/style_l.css"/>
	<link rel="stylesheet" type="text/css" href="${csspath}/jquery.alerts.css" />

	<script type="text/javascript" src="${jspath}/jquery-1.4.4.js"></script>
	<script type="text/javascript" src="${jspath}/jquery.ui.min.js"></script>
	<script type="text/javascript" src="${jspath}/ui.datepicker_zh-CN.js"></script>
	<script type="text/javascript" src="${jspath}/jquery.blockUI.js"></script>
	<script type="text/javascript" src="${jspath}/load_layer.js"></script>
	<script type="text/javascript" src="${jspath}/jquery.selectAll.js"></script>
	<script type="text/javascript" src="${jspath}/public.js"></script>
	
	<script type="text/javascript" src="${jspath}/jquery/jquery.ui.draggable.js"></script>
	<script type="text/javascript" src="${jspath}/jquery/jquery.alerts.js"></script>
	
	<script src="${jspath}/jquery/validate/jquery.validationEngine.js" type="text/javascript"></script>
	<script src="${jspath}/jquery/validate/jquery.validationEngine-zh.js" type="text/javascript"></script>
	<link rel="stylesheet" type="text/css" href="${webcontext}/css/validationEngine.jquery.css"/>
	
	<script type="text/javascript">
	$(function(){
		
		$("#sub").click(function(){
			if($("#subForm").validationEngine({returnIsValid:true})){
				$.ajax({
					type:'POST',
					url: '${webcontext}/login/operationpasswordForUpdateMobile',
					async: false,
					data:$('#subForm').serialize(),
					dataType : 'json',
					success : function(data) {
					   if(data.verifyOperationPwd) {
						   		removeLayer();
					   }else{
						   $("#errorPwd").html("密码错误!");
					   }
				    }
				});
			}
		});
		
		$("#cancel").click(function(){
			$("body",parent.document).find("#toUpdateMobile").show();
			$("body",parent.document).find("#updateMobile").html("");
			window.parent.document.getElementById("mobilePhone").disabled =true;
			removeLayer();
		});
	});
	</script>
</head>
<form action="${webcontext}/mainpage/loginData" id="toIndex" target="dms_inner"> </form>
<form:form  method="post" modelAttribute="OperationPwdDto" id="subForm">
	<form:hidden path="dealerNum"/>
		<!-- content -->
	<div id="content">
	
		<!-- wrap -->
		<div id="wrap">
			<!-- search_div -->
			<div class="search_div">
				<div class="spliter h_10"></div>
				<table class="search_tab"  align="left" style="width: 500px;">
				<tr>
						<td>&nbsp;</td>
		      	</tr>
				<tr>
				    <td style="width: 200px;"><font style="float: right;">请输入授权密码：&nbsp;&nbsp;&nbsp;&nbsp;</font></td>
				    <td style="width: 130px;"><form:password path="operationPassword" cssClass="validate[required] text" id="operationPwd"/></td>
					<td style="width: 100px;"><span id="errorPwd" style="color:red;"></span></td>
			    </tr>
			      <tr>
						<td>&nbsp;</td>
			      </tr>
					<tr>
						<td colspan="8" class="center2">
							<input type="button" class="btn" id="sub"value="确认"/>&nbsp;&nbsp;&nbsp;
							<input type="button" class="btn" id="cancel"value="取消"/>
						</td>
					</tr>
					<tr>
						<td>&nbsp;</td>
			      	</tr>
				</table>
				<div class="spliter h_10"></div>
			</div>
			<!-- /search_div -->
			
			<div class="spliter h_10"></div>
			
		</div>
		<!-- /wrap -->
	</div>
	<!-- /content -->
	</form:form>
</body>
</html>